package com.minhua.jijiehao2.bean;

import com.minhua.jijiehao2.base.adapter.abslistview.BaseExpCommonAdapter;

import java.util.List;

/**
 * @author moo
 * @date 2017/12/8.
 * @describe
 */

public class QuestionBean extends BaseExpCommonAdapter.BaseExpBean<QuestionBean.ProblemGeneralDetailsBean> {

    /**
     * sort : 1
     * problem_name : 如何选择贷款产品
     * problemGeneralDetails : [{"parent_sort":1,"small_sort":1,"problem_answer":"身份证+手机号"},{"parent_sort":1,"small_sort":2,"problem_answer":"手机号+支付宝"},{"parent_sort":1,"small_sort":3,"problem_answer":"信用卡"}]
     */

    private int sort;
    private String problem_name;
    private List<ProblemGeneralDetailsBean> problemGeneralDetails;

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getProblem_name() {
        return problem_name;
    }

    public void setProblem_name(String problem_name) {
        this.problem_name = problem_name;
    }

    public List<ProblemGeneralDetailsBean> getProblemGeneralDetails() {
        return problemGeneralDetails;
    }

    public void setProblemGeneralDetails(List<ProblemGeneralDetailsBean> problemGeneralDetails) {
        this.problemGeneralDetails = problemGeneralDetails;
    }

    @Override
    public List<ProblemGeneralDetailsBean> getList() {
        return problemGeneralDetails;
    }

    public class ProblemGeneralDetailsBean {
        /**
         * parent_sort : 1
         * small_sort : 1
         * problem_answer : 身份证+手机号
         */

        private int parent_sort;
        private int small_sort;
        private String problem_answer;

        public int getParent_sort() {
            return parent_sort;
        }

        public void setParent_sort(int parent_sort) {
            this.parent_sort = parent_sort;
        }

        public int getSmall_sort() {
            return small_sort;
        }

        public void setSmall_sort(int small_sort) {
            this.small_sort = small_sort;
        }

        public String getProblem_answer() {
            return problem_answer;
        }

        public void setProblem_answer(String problem_answer) {
            this.problem_answer = problem_answer;
        }
    }
}
